<%-- 
    Document   : lista
    Created on : 19-ene-2015, 11:55:57
    Author     : Manuel Vinuesa
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="packageVotaciones.Censo"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%ArrayList<Censo> ArrayVotantes=(ArrayList)session.getAttribute("ArrayCenso"); %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <style>
        td{
            border: 1px solid black;
        }
    </style>
    <body style="text-align: center;">
        <form action="index.jsp">
            <h1>LISTA VOTANTES</h1><br>
        
            <table style="margin-left: 43%;">
                <tr>
                    <td>NIF</td>
                    <td>¿HA VOTADO?</td>
                </tr>

                    <%
                       for(int i=0;i<ArrayVotantes.size();i++){
                           %>
                          <tr>
                           <td><%=ArrayVotantes.get(i).getNif()%></td>
                           <td><%=ArrayVotantes.get(i).getVoto()%></td>
                          </tr>
                      <% }
                    %>

            </table>
                    <input type="submit" value="Volver" />
        </form>
        
    </body>
</html>
